import { request } from "../http";
import api from "../base";

// 登录
export const login = (data) => {
  return request('post', api.baseUrl + 'WebAPI/CasLoginNew', data)
}
// 获取验证码
export const SendMsg = (data) => {
  return request('post', api.baseUrl + 'WebAPI/SendMsg', data)
}
// 手机登录
export const PhoneLoginNew = (data) => {
  return request('post', api.baseUrl + 'WebAPI/PhoneLoginNew', data)
}
// 个人信息验证
export const PhoneGetUser = (data) => {
  return request('get', api.baseUrl + 'WebAPI/PhoneGetUser', data)
}
// 验证手机号
export const PhoneCodeVerify = (data) => {
  return request('get', api.baseUrl + 'WebAPI/PhoneCodeVerify', data)
}
// 忘记密码
export const PhoneUpdateUser = (data) => {
  return request('post', api.baseUrl + 'WebAPI/PhoneUpdateUser', data)
}

//-注册登录名称验证
export const CodeVerification = (data) => {
  return request('post', api.baseUrl + 'WebAPI/CodeVerification', data)
}

//-注册手机号验证
export const TelVerification = (data) => {
  return request('post', api.baseUrl + 'WebAPI/TelVerification', data)
}

//-注册企业名称验证
export const NameVerification = (data) => {
  return request('post', api.baseUrl + 'WebAPI/NameVerification', data)
}

//-注册接口
export const CasRegistrationNew = (data) => {
  return request('post', api.baseUrl + 'WebAPI/CasRegistrationNew', data)
}

